package com.ruoyi.bom.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bom.mapper.TqlStapPurchaseMapper;
import com.ruoyi.bom.domain.TqlStapPurchase;
import com.ruoyi.bom.service.ITqlStapPurchaseService;

/**
 * 物料采购Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-31
 */
@Service
public class TqlStapPurchaseServiceImpl implements ITqlStapPurchaseService 
{
    @Autowired
    private TqlStapPurchaseMapper tqlStapPurchaseMapper;

    /**
     * 查询物料采购
     * 
     * @param id 物料采购主键
     * @return 物料采购
     */
    @Override
    public TqlStapPurchase selectTqlStapPurchaseById(Integer id)
    {
        return tqlStapPurchaseMapper.selectTqlStapPurchaseById(id);
    }

    /**
     * 查询物料采购列表
     * 
     * @param tqlStapPurchase 物料采购
     * @return 物料采购
     */
    @Override
    public List<TqlStapPurchase> selectTqlStapPurchaseList(TqlStapPurchase tqlStapPurchase)
    {
        return tqlStapPurchaseMapper.selectTqlStapPurchaseList(tqlStapPurchase);
    }

    /**
     * 新增物料采购
     * 
     * @param tqlStapPurchase 物料采购
     * @return 结果
     */
    @Override
    public int insertTqlStapPurchase(TqlStapPurchase tqlStapPurchase)
    {
        return tqlStapPurchaseMapper.insertTqlStapPurchase(tqlStapPurchase);
    }

    /**
     * 修改物料采购
     * 
     * @param tqlStapPurchase 物料采购
     * @return 结果
     */
    @Override
    public int updateTqlStapPurchase(TqlStapPurchase tqlStapPurchase)
    {
        return tqlStapPurchaseMapper.updateTqlStapPurchase(tqlStapPurchase);
    }

    /**
     * 批量删除物料采购
     * 
     * @param ids 需要删除的物料采购主键
     * @return 结果
     */
    @Override
    public int deleteTqlStapPurchaseByIds(Integer[] ids)
    {
        return tqlStapPurchaseMapper.deleteTqlStapPurchaseByIds(ids);
    }

    /**
     * 删除物料采购信息
     * 
     * @param id 物料采购主键
     * @return 结果
     */
    @Override
    public int deleteTqlStapPurchaseById(Integer id)
    {
        return tqlStapPurchaseMapper.deleteTqlStapPurchaseById(id);
    }
}
